package cn.cxy.demo.network

import cn.cxy.demo.network.response.ApiResult
import cn.cxy.demo.network.response.Article
import cn.cxy.demo.network.response.Pagination
import retrofit2.http.GET
import retrofit2.http.Path

interface ApiService {

    @GET("/article/list/{page}/json")
    suspend fun getArticleList(@Path("page") page: Int): ApiResult<Pagination<Article>>
}